package cn.stylefeng.guns.modular.project.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.project.entity.ProjectMemberWork;
import cn.stylefeng.guns.modular.project.model.params.ProjectMemberWorkParam;
import cn.stylefeng.guns.modular.project.model.result.ProjectMemberWorkResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2019-10-21
 */
public interface ProjectMemberWorkService extends IService<ProjectMemberWork> {

    /**
     * 新增
     *
     * @author 
     * @Date 2019-10-21
     */
    void add(ProjectMemberWorkParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2019-10-21
     */
    void delete(ProjectMemberWorkParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2019-10-21
     */
    void update(ProjectMemberWorkParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2019-10-21
     */
    ProjectMemberWorkResult findBySpec(ProjectMemberWorkParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2019-10-21
     */
    List<ProjectMemberWorkResult> findListBySpec(ProjectMemberWorkParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2019-10-21
     */
     LayuiPageInfo findPageBySpec(ProjectMemberWorkParam param);

     int sumWorkHour(int projectId);
     int sumWorkHour1(int projectId,long userId);

     void addWorkHourSelf(ProjectMemberWorkParam param);
}
